

export default [
    {
        path: '/',
        name: 'home',
        meta: {
            title: '首页',
            url: '/'
        },
        component: () => import('../pages/layout/layouts.vue'),
        children: [
            {
                path: '/',
                name: 'home',
                meta: {
                    title: '首页',
                    url: '/'
                },
                component: () => import('../pages/layout/layout.vue'),
                children: [
                    {
                        path: '/',
                        name: 'home',
                        meta: {
                            title: '首页',
                            url: '/'
                        },
                        component: () => import('../pages/index/index.vue'),
                    },
                    {
                        path: '/order',
                        name: 'order',
                        meta: {
                            title: '订单',
                            url: '/order'
                        },
                        component: () => import('../pages/order/order.vue'),
                    },
                    {
                        path: '/my',
                        name: 'my',
                        meta: {
                            title: '我的',
                            url: '/my'
                        },
                        component: () => import('../pages/my/my.vue'),
                    },
                ]
            },

        ]
    },
    {
        path: '/car',
        name: '/car',
        meta: {
            title: '购物车',
            url: '/car',
        },
        component: () => import('../pages/index/car.vue'),
    },
    {
        path: '/order/opensupplier/:id?',
        name: '/order/opensupplier',
        meta: {
            title: '供应商详情',
            url: '/order/opensupplier',
        },
        component: () => import('../pages/order/openSupplier.vue'),
    },
    {
        path: '/order/receive/:id',
        name: '/order/receive',
        meta: {
            title: '收货',
            url: '/order/receive',
        },
        component: () => import('../pages/order/receive.vue'),
    },
    {
        path:'/seach',
        name:'/seach',
        meta:{
            title:'搜索',
            url:'/seach'
        },
        component: () =>import ('../pages/index/seach.vue'),
    },
    {
        path:'/shoppdetail/:id',
        name:'/shoppdetail',
        meta:{
            title:'商品详情',
            url:'/shoppdetail',
        },
        component: ()=>import('../pages/index/shoppDetail.vue'),
    },
    {
        path: '/login',
        name: 'login',
        meta: {
            title: '登录',
        },
        component: () => import('../pages/login/login.vue'),
    }
];